import type { RouteRecordRaw } from 'vue-router'
import type { CategoryObj } from '@/api/product/attr/type.ts'
export interface UserState {
  token: string | null
  menuRoutes: RouteRecordRaw[]
  username: string //用户名
  avatar: string //用户头像
  buttons: string[] //存放用户按钮权限
  roles: string[] //存放用户角色信息
  routes: string[] //存放用户菜单权限
}

//定义分类仓库state对象接口
export interface CategoryState {
  category1List: CategoryObj[]
  category2List: CategoryObj[]
  category3List: CategoryObj[]
  category1Id: string | number
  category2Id: string | number
  category3Id: string | number
}
